﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SelUserMultiple.ascx.cs"
    Inherits="Control_SelUserMultiple" %>

<script>
    function GetUserList(name) {
        //alert(name);

        var hid = document.getElementById("listid").childNodes[0];
        var lb = document.getElementById("listname").childNodes[0];
        hid.value = "";
        lb.innerHTML = "";
        var MyName = name.split(',');

        for (var i = 0; i < MyName.length; i++) {
            var str = MyName[i].split('?');
            lb.add(new Option(str[0], str[1]));
            hid.value += str[1] + ",";
            //lb.add(new Option(str[0],str[1]));
        }

        //lb.options[0] = new Option('a', 'a', true, true);
        //alert(lb);
        //lb.add(new Option('a', 'a'));
    }
</script>

<table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td valign="top">
            <span id="listid">
                <asp:HiddenField runat="server" ID="hidId" />
            </span><span id="listname">
                <asp:ListBox ID="txtUserList" runat="server" Height="400px" Width="200px"></asp:ListBox>
            </span>
        </td>
        <td valign="top">
            <asp:ImageButton ID="img" runat="server" ImageUrl="~/Image/refval/RefVal.gif" ToolTip="员工选择"
                OnClientClick="window.open ('../Train/SelEmployees.aspx?Multi=true', '员工添加', 'height=700, width=600, toolbar=no, menubar=no, scrollbars=yes,status=no,top=300,left=300');return false;" />
        </td>
    </tr>
</table>
